export const shopcartReducer=(previousState={list:[],total:0},action)=>{
    switch(action.type){
        case 'getShopcartList':
            return{
                ...previousState,
                list:action.list
            }
        default:
            return previousState
    }
}